package com.interclass;

public class Field {
	Field(){
		
	}
	
	public InterTest test(final int n){
		return new InterTest(){
			public int i;

			public void display(){
				System.out.println(i);
			}
			public int dis(){
				i = n;
				System.out.println(i);
				return i;
			}
		};
	}
	
	public  static void main(String args[]){
		Field f = new Field();
		InterTest t = f.test(1);
		t.display();
		t.dis();
	}
}
